<div class="detail-tab-panel" style="padding-bottom:3rem">
    <div class="tab-panel comment-block show">
        <div class='container'>
			<!--评论模版-->
			<div  class="fui-cell-group fui-comment-group" style="margin-top:0">
					<div ng-repeat="comment in pagedata.list" ng-if="pagedata.showpingjia==1 || $index<2" class="fui-cell" style="padding:0.1rem 0.5rem">
						<div class="fui-cell-text comment">
							<div class="info head" style="height:auto">
								<div class='img'><img ng-src="{{tomedia(comment.member.avatar) || '../core/resource/images/nopic.jpg'}}"/></div>
								<div class='nickname'>
									<div>{{comment.member.nickname}}</div>
									<div class="subtitle" style="line-height:1.4;font-size:0.6rem">{{comment.createtime}}</div>
								</div>
								<div class="star star1">
									<span ng-class="{'shine':comment.star >= 1}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':comment.star >= 2}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':comment.star >= 3}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':comment.star >= 4}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':comment.star >= 5}"><i class="icon icon-shoucang-tianchong"></i></span>
								</div>
							</div>
							<div style="padding-left:1rem">
								<div ng-if="comment.content" class="remark">{{comment.content}}</div>
								<div ng-if="comment.images.length>0" class="remark img">
									<div ng-repeat="img in comment.images" class="img"><img ng-click="pagedata.show_bigimage=true;pagedata.showimage=img" ng-src="{{tomedia(img)}}"/></div>
								</div>	
								<div class="options" style="padding:0.3rem;">
									<div class="fui-tag-red-o">{{comment.room.title ||'标准房间'}}</div>
								</div>	
								<div ng-if="comment.reply_content" class="reply-content" style="background:#EDEDED;">
									掌柜回复：{{comment.reply_content}}

									<div ng-if="comment.reply_images.length>0" class="remark img">
										
										<div ng-repeat="img in comment.reply_images" class="img"><img ng-click="pagedata.show_bigimage=true;pagedata.showimage=img" data-lazy="{{img}}" /></div>
									
									</div>
								   
								</div>
								<div ng-if="comment.append_content && comment.replychecked==0" class="remark reply-title">用户追加评价</div>
								<div class="remark">{{comment.append_content}}</div>
							   
								<div ng-if="comment.append_images.length>0" class="remark img">
									
									<div ng-repeat="img in comment.append_images" class="img"><img ng-click="pagedata.show_bigimage=true;pagedata.showimage=img" data-lazy="{{img}}" /></div>
								   
								</div>
								
								<div ng-if="omment.append_reply_content" class="reply-content" style="background:#EDEDED;">
									掌柜回复：{{comment.append_reply_content}}
								   
									<div ng-if="comment.append_reply_images.length>0" class="remark img">

										<div ng-repeat="img in comment.append_reply_images" class="img"><img ng-click="pagedata.show_bigimage=true;pagedata.showimage=img" data-lazy="{{img}}" /></div>
									</div>
								</div>
							</div>
						</div>
					</div> 
			</div>
		<!--评价-->
		</div>
    </div>
</div>
<!--图片放大-->
<div ng-if="pagedata.show_bigimage"  class="popup">
	<div class="popup-body">
	<div class="popup-center">
		<div ng-click="pagedata.show_bigimage=false" class="image" style="border-radius: 2rem; height:18rem;background: url({{tomedia(pagedata.showimage)}}) no-repeat 50% 0;background-size:100%;background-position:center center">
		</div>
	</div>
	</div>
</div>
<script>
scope.tool.get_list('jy_jd/hotel/getcomments/hotelid='+scope.pagedata.hotel.id,true);
if(scope.pagedata.showlist=='pingjia'){
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_jd/hotel/getcomments/hotelid='+scope.pagedata.hotel.id+'&type='+scope.pagedata.comments_type);
	}
}
scope.pagedata.getcomments=function(type){
scope.tool.get_list('jy_jd/hotel/getcomments/hotelid='+scope.pagedata.hotel.id+'&type='+type,true);
}
</script>